package com.youthburin.rmp.domain;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;
import java.util.Set;


/**
 * The persistent class for the rmp_dept database table.
 * 
 */
@Entity
@Table(name="rmp_dept")
public class RmpDept extends BaseVO implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="CODE")
	private String code;

	@Column(name="ADDRESS")
	private String address;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="CREATE_TIME")
	private Date createTime;

	@Column(name="CREATER")
	private String creater;

	@Column(name="FAX")
	private String fax;

	@Column(name="LEVEL")
	private int level;

	@Column(name="NAME")
	private String name;

	@Column(name="PARENT_CODE")
	private String parentCode;

	@Column(name="TELEPHONE")
	private String telephone;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="UPDATE_TIME")
	private Date updateTime;

	@Column(name="UPDATER")
	private String updater;

	//bi-directional many-to-one association to RmpUser
	@OneToMany(mappedBy="rmpDept")
	private Set<RmpUser> rmpUsers;

    public RmpDept() {
    }

	public String getCode() {
		return this.code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getCreater() {
		return this.creater;
	}

	public void setCreater(String creater) {
		this.creater = creater;
	}

	public String getFax() {
		return this.fax;
	}

	public void setFax(String fax) {
		this.fax = fax;
	}

	public int getLevel() {
		return this.level;
	}

	public void setLevel(int level) {
		this.level = level;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getParentCode() {
		return this.parentCode;
	}

	public void setParentCode(String parentCode) {
		this.parentCode = parentCode;
	}

	public String getTelephone() {
		return this.telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getUpdater() {
		return this.updater;
	}

	public void setUpdater(String updater) {
		this.updater = updater;
	}

	public Set<RmpUser> getRmpUsers() {
		return this.rmpUsers;
	}

	public void setRmpUsers(Set<RmpUser> rmpUsers) {
		this.rmpUsers = rmpUsers;
	}
	
}